const barDao = require('../dao/barDao');
const barActivityDao = require('../dao/barActivityDao');

const findOnlineTables = async (barID) => {
    const results = await barDao.findBarTabById(barID);
    const result = {
        barID: barID,
        conut: results.length
    }
    return result;
}

const findActivities = async (barID) => {
    const results = await barActivityDao.findActivitiesById(barID);
    return results;
}

module.exports = {findOnlineTables,findActivities};